import { defHttp } from '/@/utils/http/axios';

enum Api {
  List = '/plc/user/list',
  ADD = '/plc/register',
  Update = '/plc/user/editInfo',
}

export const getUserList = (params) => defHttp.post({ url: Api.List, params });

export const addUser = (params) => {
  return defHttp.post({
    url: Api.ADD,
    params,
  });
};

export const updateUser = (params) => {
  return defHttp.post({
    url: Api.Update,
    params,
  });
};
